pvh: disable 32-bit guest support for now
authorMukesh Rathor <mukesh.rathor@oracle.com>
Wed, 13 Nov 2013 08:40:41 +0000 (09:40 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 13 Nov 2013 08:40:41 +0000 (09:40 +0100)
Removing the assert allows the PVH code to call this during vmcs
construction in a later patch, making the code more robust by removing
duplicate code.

To be implemented.

Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Eddie Dong <eddie.dong@intel.com>
xen/arch/x86/domain.c

index 5ec992db81b1b9dba177e471ea9d39172346bba1..45e5afead7818eb437f589ecde4bc6dad257b801 100644 (file)
@@ -339,6 +339,14 @@ int switch_compat(struct domain *d)
 
     if ( d == NULL )
         return -EINVAL;
+
+    if ( is_pvh_domain(d) )
+    {
+        printk(XENLOG_G_INFO
+               "Xen currently does not support 32bit PVH guests\n");
+        return -EINVAL;
+    }
+
     if ( !may_switch_mode(d) )
         return -EACCES;
     if ( is_pv_32on64_domain(d) )